package com.tao.design.adapter;

/**
 * @projectName: DesignMode
 * @package: com.tao.design.adapter
 * @className: Adapter
 * @author: TT_Hugo
 * @description: Target的实现类
 * @date: 2022/12/26 19:33
 * @version: 1.0
 */
public class Adapter implements Target{
    private Adaptee adaptee;

    public Adapter(Adaptee adaptee){
        this.adaptee = adaptee;
    }

    @Override
    public void adapteeMethod() {
        adaptee.adapteeMethod();
    }

    @Override
    public void adapterMethod() {
        System.out.println("Adapter method222!");

    }
}
